package SwordForOffer.Problem6;


import SwordForOffer.utils.BinaryTreeNode;

/**
 * Created by liujia on 14-8-26.
 */
public class Problem6test {
	public  static void main(String args[]) throws Exception
	{
		ConstructBinaryTree constructBinaryTree = new ConstructBinaryTree();
		int[] pre={1,2,4,7,3,5,6,8};
		int[] in={4,7,2,1,5,3,8,6};

		BinaryTreeNode root = constructBinaryTree.construct(pre,in);
		System.out.println(root.value);
//		BinaryTreeNode root = test.constructCore(pre,in);
//		System.out.println(root);
	}
}
